package com.wc.alorithm_blue_bridge._二分.肖恩的n次根;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;

/**
 * @Author congge
 * @Date 2025/3/13 20:48
 * @description
 * https://www.lanqiao.cn/courses/46292/learning/?id=3442365&compatibility=false
 */
public class Main {
    /**
     * 二分根号数
     */
    static FastReader sc = new FastReader();
    static PrintWriter out = new PrintWriter(System.out);
    static double a, eps = 1e-6;
    static int b;

    public static void main(String[] args) {
        a = sc.nextDouble();
        b = sc.nextInt();
        double l = 0, r = 1000;
        while (r - l > eps) {
            double mid = l + (r - l) / 2;
            if(check(mid)) r = mid;
            else l = mid;
        }
        out.println((int) (r * 1000));
        out.flush();
    }
    static boolean check(double x) {
        double mul = 1;
        for(int i = 1; i <= b; i++) {
            mul *= x;
        }
        return mul >= a;
    }
}

class FastReader {
    StringTokenizer st;
    BufferedReader br;

    FastReader() {
        br = new BufferedReader(new InputStreamReader(System.in));
    }

    String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    int nextInt() {
        return Integer.parseInt(next());
    }

    String nextLine() {
        String s = "";
        try {
            s = br.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return s;
    }

    long nextLong() {
        return Long.parseLong(next());
    }

    double nextDouble() {
        return Double.parseDouble(next());
    }

    // 是否由下一个
    boolean hasNext() {
        while (st == null || !st.hasMoreTokens()) {
            try {
                String line = br.readLine();
                if (line == null)
                    return false;
                st = new StringTokenizer(line);
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return true;
    }
}

